package com.sofwin.system.service;

import com.github.pagehelper.PageInfo;
import com.sofwin.system.dto.ResourceDto;
import com.sofwin.system.pojo.SysRole;

import java.util.List;

/**
 * @packageName: com.sofwin.system.service
 * @user: andyliu
 * @date: 2021/7/14 16:18
 * @email 115176513@qq.com
 * @description: TODO
 */

public interface RoleService {

    PageInfo<SysRole> queryRoleByPage(SysRole role,Integer pageNumber,Integer pageSize);

    boolean saveOrUpdateRole(SysRole role);

    SysRole queryRoleById(Integer id);

    boolean removeById(Integer id);

    boolean removleByIds(Integer[] ids);

    boolean saveRolePermission(Integer roleId, Integer[] ids);

    List<SysRole> queryAllRoles();

    List<ResourceDto> queryResource(Integer roleId);
}
